/*
 * =====================================================================================
 *
 *       Filename:  menu.h
 *
 *    Description:  jj
 *
 *        Version:  1.0
 *        Created:  26.01.2010 17:56:38
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  Michal Antonczak (uzyszkodnik), uzyszkodnik.priv@gmail.com
 *        Company:  
 *
 * =====================================================================================
 */
#pragma once

#include <vector>

#include "timer.h"

using namespace std;

class Short_map_info;
class Menu{
	private:
		vector <Short_map_info*> map_infos;				
		Timer frame_timer;
		int chosen;
		SDL_Surface* bg;
		Uint32 timezor;
		int pos;
		double mov;
		SDL_Surface* screen;
	public:
	int dirscan(char *name);
	int load_maps();
	void menuloop();
	void sdlinit();
	void frame();
	~Menu();

};

int compar(const struct dirent** a,const struct dirent** b);
int filter(const struct dirent* a);
int map_dir_filter(const struct dirent* a);
